package com.s2015.doors.beans;

import java.util.HashSet;
import java.util.Set;

/**
 * 材质 木 或 铝制 等
 * 
 * @author Guodeqi
 *
 */
public class MaterialType {
	private long id;

	private String materialName;
	
	// 与厂商是 多对多 关系
	private Set<Vendor> vendors = new HashSet<Vendor>();
	//与型材是一对多
	private Set<Profile> profiles = new HashSet<Profile>();

	public MaterialType(){}
	
	public MaterialType(long id) {
		super();
		this.id = id;
	}

	public Set<Profile> getProfiles() {
		return profiles;
	}

	public void setProfiles(Set<Profile> profiles) {
		this.profiles = profiles;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	public Set<Vendor> getVendors() {
		return vendors;
	}

	public void setVendors(Set<Vendor> vendors) {
		this.vendors = vendors;
	}

}
